This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Equivalent of @MailSend on the Web ~James Asaremaroni 27.Jan.04 05:54 PM a Web browser Applications Development 6.0.2 CF1All Platforms
PLEASE IGNORE MY PREVIOUS POST. Here is my actual problem.
I am web enabling an existing Lotus notes form. My Submit Action for the web has @Command([FileSave]).
I am calling 2 agents from the WebQuerySave Event. One for Validating the form and one for Submiting the form.The agents give me a type mismatch error. Please Help!!!
The code is as follows...
Validate Form
Sub Initialize
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext
If(doc.GetItemValue("AMgr_1") = "") Then
Print "<SCRIPT LANGUAGE=JavaScript>"
Print "alert(\"You must enter the Requester's name!\");"
Print "document.forms[0].AMgr_1.focus();"
Print "</SCRIPT>"
doc.ErrorFlag = 1
continue = False
Exit Sub
End If
If ( doc.GetItemValue( "AMPhone" ) = "" ) Then
Print "<SCRIPT LANGUAGE=JavaScript>"
Print "alert('You must enter a Phone Number for the Requester!');"
Print "document.forms[0].AMPhone.focus();"
Print "</SCRIPT>"
doc.ErrorFlag = 1
continue = False
Exit Sub
End If
End Sub
Agent for Submitting Form
Sub Initialize
Dim session As New NotesSession
Dim maildb As New NotesDatabase( "", "" )
Dim doc As NotesDocument
Set doc = session.DocumentContext
Call maildb.Open( "Domino3/Interactive/West", "mail\internet.nsf" )
Set maildoc = New NotesDocument( maildb )
maildoc.Form = "Memo"
'maildoc.Subject = "Test"
maildoc.Subject = doc.GetItemValue("DocNum") +" has been submitted by " + doc.GetItemValue("AMgr_1")+ "....."
maildoc.Body = " This is an automated reminder for sdr."
maildoc.SendTo = "def"
maildoc.CopyTo = "abc"
Call maildoc.Send(False,maildoc.SendTo)